async function main() {
    const tronWeb = require('./tronweb')
    const abi = require('./contract-data/abi.json')
    const bytecode = require('./contract-data/bytecode.json').object
    try {
      let contract_instance = await tronWeb.contract().new({
        abi,
        bytecode,
        feeLimit: 1000000000,
        userFeePercentage: 0,
        name: 'tronpixel',
        owner_address: 'TBB2PDMqzSDXkQmsPGgbCNLrMGcfMTtoJQ',
        parameters: []
      })
      console.log(contract_instance.address)
    } catch (e) {
      console.log(e)
      // let parts = e.split('"')
      // console.log(new Buffer(parts[7], 'hex').toString('utf8'))
    }
  
  }
  
  main().then(console.log).catch(console.error)
  